module.exports = (app) => {
  const mongoose = app.mongoose;
  mongoose.pluralize(null); //去除集合后的s
  const Schema = mongoose.Schema;
  const SkuParamsSchema = new Schema(
    {
      parentId: { type: String, default: null },
      label: { type: String, required: true },
      sort: { type: Number, default: 0 }
    },
    { versionKey: false }
  );
  return mongoose.model("SkuParams", SkuParamsSchema);
};
